home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / graphics / gif2rpc / source / 8bpp / h / 8bpp next >
Encoding:
Text File  |  1995-10-16  |  2.6 KB  |  104 lines

  1. /* 8bpp.h
  2.  * AUTHOR:      Cy Booker, cy@cheepnis.demon.co.uk
  3.  * LICENSE:     FreeWare, Copyright (c) 1995 Cy Booker
  4.  * PURPOSE:     convert an 8 bit image to a 16 bit image
  5.  */
  6.  
  7. #ifndef process_gif_8bpp_h
  8. #define process_gif_8bpp_h
  9.  
  10.  
  11.  
  12. #include "gif2rpc:process_gif.h"
  13.  
  14.  
  15.  
  16. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  17.  * all of these routines take as input a fully filled out process_gif structure
  18.  * they then convert the 8-bit sprite into a 16-bit sprite
  19.  * they return TRUE if out of memory for temporary buffers
  20.  *
  21.  * the 48-bit routines use 16-bit resolution for each red/green/blue
  22.  * and uses optimised bit shifting and gubbins to make for fast and accurate colour handling
  23.  *
  24.  */
  25.  
  26. extern bool process_gif_8bpp_burkes(
  27.                 const process_gif       *p);
  28.  
  29.  
  30.  
  31. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  32.  */
  33.  
  34. extern bool process_gif_8bpp_dither2x2(
  35.                 const process_gif       *p);
  36.                 
  37.  
  38.  
  39. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  40.  */
  41.  
  42. extern bool process_gif_8bpp_floyd_steinberg(
  43.                 const process_gif       *p);
  44.  
  45.  
  46.  
  47. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  48.  */
  49.  
  50. extern bool process_gif_8bpp_nearest(
  51.                 const process_gif       *p);
  52.  
  53.  
  54.  
  55. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  56.  */
  57.  
  58. extern bool process_gif_8bpp_jarvis_judice_ninke(
  59.                 const process_gif       *p);
  60.  
  61.  
  62.  
  63. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  64.  */
  65.  
  66. extern bool process_gif_8bpp_nearest(
  67.                 const process_gif       *p);
  68.                 
  69.  
  70.  
  71. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  72.  */
  73.  
  74. extern bool process_gif_8bpp_stucki(
  75.                 const process_gif       *p);
  76.  
  77.  
  78.  
  79. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  80.  */
  81.  
  82. extern bool process_gif_8bpp_sierra3(
  83.                 const process_gif       *p);
  84.  
  85.  
  86.  
  87. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  88.  */
  89.  
  90. extern bool process_gif_8bpp_sierra2(
  91.                 const process_gif       *p);
  92.  
  93.  
  94.  
  95. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  96.  */
  97.  
  98. extern bool process_gif_8bpp_sierra2_4a(
  99.                 const process_gif       *p);
  100.  
  101.  
  102.  
  103. #endif /* process_gif_8bpp_h */
  104.